Skip to main content

Get GSTIN From PAN API

API Description

Objective

This API fetches the Goods and Services Tax Identification Number(GSTIN) from a business' Permanent Account Number(PAN) input.

Benefits

You can verify the legitimacy of a business or an individual by using the Get GSTIN From PAN API and can also use it to locate the state in which the business is registered.

Protocol

We recommend that HTTPS is used for all API calls. For HTTPS, only TLS v1.2 is supported to ensure better security. All data is received as JSON.

InputOutput
The ten digit PAN ID.The GSTIN details associated with the PAN.

API URL

curl -X POST https://ind-engine.thomas.hyperverge.co/v1/fetchGSTINByPAN

Authentication

You need a unique pair of application ID ( appId ) and application key ( appKey ) from HyperVerge to verify your identity for accessing the API.



API Request

Method - POST

Headers

ParameterMandatory or OptionalDescriptionValid Values
content-typeMandatoryThis parameter defines the media type for the request payload.application/json
appIdMandatoryApplication ID shared by HyperVergeN/A. This is a unique value.
appKeyMandatoryApplication Key shared by HyperVergeN/A. This is a unique value.
transactionIdMandatoryUnique ID for the customer journey.N/A. A unique value representing a transaction in your business ecosystem.

Request Body

The following table provides information on the parameters used in the request body of the fetchGSTINByPAN API .

ParameterMandatory or OptionalDescription
pan_idMandatoryThe unique 10-digit alphanumeric PAN ID input. It should follow the 'CCCCCDDDDC' format 'C' represents a character and 'D' represents a digit.
consentMandatoryThe parameter value should be set to Y in the request.

Sample Requests

The following codes are sample requests for the fetchGSTINByPAN API.
The following code shows a standard curl request for the fetchGSTINByPAN API.
curl --location --request POST 'https://ind-engine.thomas.hyperverge.co/v1/fetchGSTINByPAN' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"pan_id": "<Enter_PAN_ID>",
"consent": "Y"
}'

API Responses

You will receive a success response in a format similar to the following code if the API request is correct.
{
"status": "success",
"statusCode": "200",
"result": {
"status": 200,
"data": {
"code": "1002",
"message": "Found 2 records",
"results": [
{
"document_type": "GSTIN",
"document_id": "<ID number of GST document>",
"status": "Active",
"state": "<The_State_Of_Registration>",
"state_code": "<The_GST_State_Code>"
},
{
"document_type": "GSTIN",
"document_id": "<The_ID_number_Of_The_GST_Document>",
"status": "Active",
"state": "<The_State_Of_Registration>",
"state_code": "<The_GST_State_Code>"
}
]
},
"timestamp": 1664424036317
}
}

Success Response Details

{
"status": "success",
"statusCode": "200",
"result": {
"status": 200,
"data": {
"code": "1002",
"message": "Found [[number]] records",
"results": [
{
"document_type": "GSTIN",
"document_id": "<ID number of GST document>",
"status": "Active",
"state": "<The_State_Of_Registration>",
"state_code": "<The_GST_State_Code>"
},
{
"document_type": "GSTIN",
"document_id": "<The_ID_number_Of_The_GST_Document>",
"status": "Active",
"state": "<The_State_Of_Registration>",
"state_code": "<The_GST_State_Code>"
}
]
},
"timestamp": 1664424036317
}
}
Was this helpful?
ON THIS PAGE
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: